﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" x:Class="ZJUDTS.LogOnPanel"
    mc:Ignorable="d"
    d:DesignWidth="300">

    <StackPanel x:Name="LayoutRoot">

        <!-- 标题栏 -->
        <TextBlock Text="用户登录" Style="{StaticResource HeaderTextStyle}" />

        <!-- 登录信息面板 -->
        <Grid x:Name="LogOnInfoGrid">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="auto" />
                <RowDefinition Height="auto" />
            </Grid.RowDefinitions>

            <TextBlock Margin="3" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Left" Text="用户名：" Style="{StaticResource DefaultLabelTextStyle}" />
            <TextBox x:Name="Nametype" Margin="3" Grid.Column="1" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Stretch" Style="{StaticResource DefaultInputTextStyle}" />

            <TextBlock Margin="3" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Left" Text="密码：" Style="{StaticResource DefaultLabelTextStyle}" />
            <PasswordBox x:Name="PasswordType" Margin="3" Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Stretch" Style="{StaticResource DefaultPassowrdStyle}" />
        </Grid>

        <!-- 分割线 -->
        <Line Margin="10" Height="3" Stroke="Gray" Fill="Gray" />

        <!-- 操作面板 -->
        <StackPanel x:Name="ActionPanel" Orientation="Horizontal">
            <Button Margin="3" Content="{StaticResource LogOnItem}" Style="{StaticResource ImageItemButtonStyle}" VerticalAlignment="Center" Padding="3" Click="Button_Click_1" />
            <HyperlinkButton Margin="3" Content="忘记了密码？" VerticalAlignment="Center" Style="{StaticResource DefaultHyperlinkButtonStyle}" />
            <HyperlinkButton Margin="3" Content="注册用户" VerticalAlignment="Center" Style="{StaticResource DefaultHyperlinkButtonStyle}" Click="HyperlinkButton_Click_1" />
            <sdk:DataGrid x:Name="DataGrid" Height="100" Width="95"/>
        </StackPanel>

    </StackPanel>
</UserControl>
